<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>患者_同意书</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.2.0.css" />
    <link rel="stylesheet" type="text/css" href="../css/BasicPatientInformation.css" />
</head>

<body>
    <main id="app">
        <section class="aui-content-padded">
            <main id="zhiqing-container">
                <div class="text-wrapper">
                    一：谈话
                </div>
            </main>
        </section>

        <section class="aui-content-padded">
            <div class="aui-card-list">
                <ul class="aui-list aui-form-list">
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                谈话时间：
                            </div>
                            <div class="aui-list-item-input" id="F_TalkTime" onclick="getDateTime()">
                                {{getDateTime}}
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                谈话地点：
                            </div>
                            <div class="aui-list-item-input">
                                <select id="F_PlaceConversation">
                                  <option  v-for="(item, index) in Conversation" :value="item.Dictionaries_Name">{{item.Dictionaries_Name}}</option>
                                </select>
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                签署时间：
                            </div>
                            <div class="aui-list-item-input" id="F_SigningTime" onclick="getSigningTime()">
                                {{getSigningTime}}
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </section>

        <section class="aui-content-padded">
            <main id="zhiqing-container">
                <div class="text-wrapper">
                    二：患者详情
                </div>
            </main>
        </section>

        <section class="aui-content-padded">
            <div class="aui-card-list">
                <ul class="aui-list aui-form-list">
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                姓名：
                            </div>
                            <div class="aui-list-item-input">
                                <input id="F_paientname" type="text" placeholder="姓名" disabled="disabled">
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                性别：
                            </div>
                            <div class="aui-list-item-input">
                                <input id="F_patientsex" type="text" placeholder="性别" disabled="disabled">
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                年龄：
                            </div>
                            <div class="aui-list-item-input">
                                <input id="F_patientage" type="number" placeholder="年龄" disabled="disabled">
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                科室：
                            </div>
                            <div class="aui-list-item-input">
                                <input id="F_officeid" type="text" placeholder="科室" disabled="disabled">
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                住院号：
                            </div>
                            <div class="aui-list-item-input">
                                <input id="F_zhuyuannumber" type="text" placeholder="住院号" disabled="disabled">
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </section>

        <section class="aui-content-padded">
            <main id="zhiqing-container">
                <div class="text-wrapper">
                    三：病情诊断
                </div>
            </main>
        </section>

        <section class="aui-content-padded">
            <div class="aui-card-list">
                <ul class="aui-list aui-form-list">
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                病情诊断：
                            </div>
                            <div class="aui-list-item-input">
                                <textarea id="F_DiseaseDiagnosis"></textarea>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </section>
        <section class="aui-content-padded">
            <main id="zhiqing-container">
                <div class="text-wrapper">
                    四：治疗方案
                </div>
            </main>
        </section>
        <section class="aui-content-padded">
            <div class="aui-card-list">
                <ul class="aui-list aui-form-list">
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                治疗方案：
                            </div>
                            <div class="aui-list-item-input">
                                <select id="Programme" onchange="Programme()">
                                  <option  v-for="(item, index) in TreatmentPlan" :value="item.Dictionaries_ID">{{item.Dictionaries_Name}}</option>
                                </select>
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <textarea id="F_ImplementationTreatmentPlan"></textarea>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;治疗中患者本人和（或）他人因病情需要，或有急诊患者抢救时，上述治疗方案可能需做相应调整， 高压氧科医师根据患者 。（尤其急性一氧化碳中毒患者）病情制定的高压氧治疗方案患者必须遵从医嘱，否则后果自负
                    </li>
                </ul>
            </div>
        </section>
        <section class="aui-content-padded">
            <main id="zhiqing-container">
                <div class="text-wrapper">
                    五：高压氧治疗中可能出现的主要意外情况
                </div>
            </main>
        </section>
        <section class="aui-content-padded">
            <div class="aui-card-list">
                <ul class="aui-list aui-form-list">
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-input aui-list-item-input-read-only">
                                <label>
                                  <input type="checkbox" class="aui-checkbox" checked>1.中耳和/或鼻突气压伤</label>
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-input aui-list-item-input-read-only">
                                <label>
                                  <input type="checkbox" class="aui-checkbox" checked>
                                    2.由于个体差异引起的氧过敏
                                  </label>
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-input aui-list-item-input-read-only">
                                <label>
                                  <input type="checkbox" class="aui-checkbox" checked>
                                  3.呼吸不当引起肺气压伤：昏迷患者呕吐引起呼吸道误吸
                                </label>
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-input aui-list-item-input-read-only">
                                <label>
                                  <input type="checkbox" class="aui-checkbox" checked>
                                  4.新近手术的患者出现的切口部位皮下气肿，出血
                                </label>
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-input aui-list-item-input-read-only">
                                <label>
                                  <input type="checkbox" class="aui-checkbox" checked>
                                  5.颅底骨折和较大范围脑梗塞患者出现的气颅，脑脊液漏脑出血
                                </label>
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-input aui-list-item-input-read-only">
                                <label>
                                  <input type="checkbox" class="aui-checkbox" checked>
                                  6.由于血压波动，出现脑出血脑梗塞
                                </label>
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-input aui-list-item-input-read-only">
                                <label>
                                  <input type="checkbox" class="aui-checkbox" checked>
                                  7.癫痫发作
                                </label>
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-input aui-list-item-input-read-only">
                                <label>
                                  <input type="checkbox" class="aui-checkbox" checked>
                                  8.呼吸心跳骤停	9.高压氧治疗往返中出现意外情况
                                </label>
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-input aui-list-item-input-read-only">
                                <label>
                                  <input type="checkbox" class="aui-checkbox" checked>
                                  9.高压氧治疗往返中出现意外情况
                                </label>
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-input aui-list-item-input-read-only">
                                <label>
                                  <input type="checkbox" class="aui-checkbox" checked>
                                  10.可能出现的其他意外情况,以上情况可能很轻微，也可能很严重，甚至导致残废或死亡
                                </label>
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                其他:
                            </div>
                            <div class="aui-list-item-input">
                                <input type="text" id="F_Other" placeholder="其他">
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </section>
        <section class="aui-content-padded">
            <main id="zhiqing-container">
                <div class="text-wrapper">
                    六、治疗中须遵守如下规定
                </div>
            </main>
        </section>
        <section class="aui-content-padded">
            <div class="aui-card-list">
                <ul class="aui-list aui-form-list">
                    <li class="aui-list-item">
                        1.患者必须遵从高压氧医师医嘱进行高压氧治疗。治疗中服从医护人员指导及安排， 否则发生影响本人及其他患者治疗或正常治疗情况时，为保障患者医疗安全，值班人员有权暂停有关患者的高压氧治疗。
                    </li>
                    <li class="aui-list-item">
                        2.入舱人员严禁携带火柴，打火机，手机，电动玩具类带点物品，以及火药，有机溶剂等各类易燃易爆物品。爱护舱内设施，物品。
                    </li>
                    <li class="aui-list-item">
                        3.更换棉质服装被服，不得穿着未经防火和防静电处理的化纤织品。4.高压氧治疗期间，请勿自行调整资料药物，以免影响疗效和引起危险。
                    </li>
                </ul>
            </div>
        </section>
        <section class="aui-content-padded">
            <main id="zhiqing-container">
                <div class="text-wrapper">
                    七、疗效告知
                </div>
            </main>
        </section>
        <section class="aui-content-padded">
            <div class="aui-card-list">
                <ul class="aui-list aui-form-list">
                    <li class="aui-list-item">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CO中毒有特效；脑外伤、突发性耳聋疗效显著；其他缺血缺氧性疾病有效。根据个体差异疗效也有不同。
                    </li>
                </ul>
            </div>
        </section>
        <section class="aui-content-padded">
            <main id="zhiqing-container">
                <div class="text-wrapper">
                    八、患者意见
                </div>
            </main>
        </section>
        <section class="aui-content-padded">
            <div class="aui-card-list">
                <ul class="aui-list aui-form-list">
                    <li class="aui-list-item">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;我已经如实报告病情，经高压氧医师告知， 了解上述事项并表示理解。由于病情需要，我同意接受高压氧治疗，遵守上述规定，并承担相应风险。 如不遵守从遗嘱或不及时报告舱内治疗时病情变化，出现问题后果自负
                    </li>
                </ul>
            </div>
        </section>

        <section class="aui-content-padded">
            <div class="aui-card-list">
                <ul class="aui-list aui-form-list">
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                与患者关系：
                            </div>
                            <div class="aui-list-item-input">
                                <input type="text" id="F_RelationshipPatients" placeholder="与患者关系">
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                联系电话:
                            </div>
                            <div class="aui-list-item-input">
                                <input type="number" id="F_ContactNumber" placeholder="联系电话">
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item" id="HiddenDisplay">
                        <div class="aui-list-item-inner">
                            <div class="aui-bar aui-bar-btn aui-bar-btn-round" style="width:45%;">
                                <div class="aui-bar-btn-item aui-active" onclick="openSign()">签名</div>
                                <div class="aui-bar-btn-item" onclick="addInformedConsent()">提交</div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </section>
        <section class="aui-grid">
            <div class="aui-col-xs-4" onclick="closeSign()">
                <i class="aui-iconfont aui-icon-close"></i>
                <div class="aui-grid-label">关闭签名</div>
            </div>
            <div class="aui-col-xs-4" onclick="clearSign()">
                <i class="aui-iconfont aui-icon-recovery"></i>
                <div class="aui-grid-label">清除全部</div>
            </div>
            <div class="aui-col-xs-4" onclick="saveSign()">
                <i class="aui-iconfont aui-icon-paper"></i>
                <div class="aui-grid-label">保存签名</div>
            </div>
        </section>
    </main>
    <input type="hidden " id="getF_ImplementationTreatmentPlan" value="">
</body>
<script src="../script/api.js" charset="utf-8"></script>
<script src="../script/vue.js" charset="utf-8"></script>
<script src="../js/ToConfigure.js" charset="utf-8"></script>
<script src="../script/aui-toast.js" charset="utf-8"></script>
<script type="text/javascript">
    var vm = null;
    apiready = function() {
        //接收患者ID
        var F_ID = api.pageParam.F_ID;
        var Url_IP = ToConfigure_IP("Gorgeous");
        vm = new Vue({
            el: '#app',
            data: {
                F_ID: 0, //患者唯一标识
                PictureInformation: "",
                getDateTime: '选择日期',
                getSigningTime: '选择日期',
                TreatmentPlan: [], //治疗方案
                Conversation: [], //谈话地点
            },
            created() {
                if (F_ID !== undefined && F_ID !== '') {

                    this.F_ID = F_ID;
                    this.Url_IP = Url_IP;

                    var JsParms = new Object();
                    //预约ID
                    JsParms.F_reserveId = F_ID;
                    //查询患者信息并且赋值
                    api.ajax({
                        url: this.Url_IP + 'HyperbaricOxygen/HO_InformedConsent/Query_HO_InformedConsent',
                        method: 'get',
                        data: {
                            values: {
                                parms: JSON.stringify(JsParms)
                            }
                        },
                    }, function(ret, err) {
                        if (ret) {
                            //验证参数不为空
                            if (ret[0].F_TalkTime != "" && ret[0].F_TalkTime != undefined && ret[0].F_TalkTime != null) {
                                //谈话时间
                                document.getElementById("F_TalkTime").innerText = ret[0].F_TalkTime;
                            }
                            //验证参数不为空
                            if (ret[0].F_SigningTime != "" && ret[0].F_SigningTime != undefined && ret[0].F_SigningTime != null) {
                                //谈话时间
                                document.getElementById("F_SigningTime").innerText = ret[0].F_SigningTime;
                            }

                            //谈话地点
                            document.getElementById("F_PlaceConversation").value = ret[0].F_PlaceConversation;
                            //病情诊断
                            document.getElementById("F_DiseaseDiagnosis").value = ret[0].F_DiseaseDiagnosis;
                            if (ret[0].zhiliaofangan != undefined) {

                                //实施治疗方案
                                document.getElementById("F_ImplementationTreatmentPlan").value = ret[0].zhiliaofangan;
                            }
                            //实施治疗方案
                            document.getElementById("getF_ImplementationTreatmentPlan").value = ret[0].F_ImplementationTreatmentPlan;
                            //其他
                            document.getElementById("F_Other").value = ret[0].F_Other;
                            //与患者关系
                            document.getElementById("F_RelationshipPatients").value = ret[0].F_RelationshipPatients;
                            //联系电话
                            document.getElementById("F_ContactNumber").value = ret[0].F_patientphone;
                            //姓名
                            document.getElementById("F_paientname").value = ret[0].F_paientname;
                            //性别
                            document.getElementById("F_patientsex").value = ret[0].F_patientsex;
                            //年龄
                            document.getElementById("F_patientage").value = ret[0].F_patientage;
                            //科室
                            document.getElementById("F_officeid").value = ret[0].F_officeid;
                            //住院号
                            document.getElementById("F_zhuyuannumber").value = ret[0].F_zhuyuannumber;
                            //诊断
                            document.getElementById("F_DiseaseDiagnosis").value = ret[0].zhenduan;
                        } else {
                            var toast = new auiToast();
                            toast.fail({
                                title: "获取失败",
                                duration: 2000
                            });
                        }
                    });
                }

                //治疗方案
                api.ajax({
                    url: this.Url_IP + 'HyperbaricOxygen/HO_InformedConsent/QueryDictionaryLibrary',
                    method: 'get',
                    data: {
                        values: {
                            Dictionaries_Type: "170"
                        }
                    },
                }, function(ret, err) {
                    if (ret) {
                        vm.TreatmentPlan = ret;
                    } else {
                        var toast = new auiToast();
                    }
                });

                //谈话地点
                api.ajax({
                    url: this.Url_IP + 'HyperbaricOxygen/HO_InformedConsent/QueryDictionaryLibrary',
                    method: 'get',
                    data: {
                        values: {
                            Dictionaries_Type: "233"
                        }
                    },
                }, function(ret, err) {
                    if (ret) {
                        vm.Conversation = ret;
                    } else {
                        var toast = new auiToast();
                    }
                });


            }
        })
    }

    //赋值治疗方案
    function Programme() {

        if (vm.TreatmentPlan.length > 0) {
            for (var i = 0; i < vm.TreatmentPlan.length; i++) {
                if (vm.TreatmentPlan[i].Dictionaries_ID == document.getElementById("Programme").value) {
                    //赋值
                    document.getElementById("F_ImplementationTreatmentPlan").value = vm.TreatmentPlan[i].Dictionaries_ChineseCame;
                    break;
                }
            }

        }
    }

    //选择时间
    function getSigningTime() {
        api.openPicker({
            type: 'date',
            date: '2019-01-01',
            title: '选择开始日期'
        }, function(ret, err) {
            if (ret) {
                vm.getSigningTime = '' + ret.year +
                    '-' + ret.month +
                    '-' + ret.day
            }
        });
    }


    //选择时间
    function getDateTime() {
        api.openPicker({
            type: 'date',
            date: '2019-01-01',
            title: '选择开始日期'
        }, function(ret, err) {
            if (ret) {
                vm.getDateTime = '' + ret.year +
                    '-' + ret.month +
                    '-' + ret.day
            }
        });
    }

    //添加知情同意书
    function addInformedConsent() {
        var toast = new auiToast();
        if (document.getElementById("getF_ImplementationTreatmentPlan").value == "" || document.getElementById("getF_ImplementationTreatmentPlan").value == undefined) {
            //api.getPrefs获取当前登录状态
            api.getPrefs({
                key: 'User_Id'
            }, function(ret, err) {
                //当偏好设置尚未设置或者曾设置后被移除后，返回值(ret.value)均为空。
                var val = ret.value;
                if (val != "") {
                    //获取操作参数
                    var jsonStr = parameter(val);
                    var Url_IP = ToConfigure_IP("Gorgeous");
                    //验证参数不为空
                    if (jsonStr != "" && jsonStr != undefined) {
                        api.ajax({
                            url: Url_IP + 'HyperbaricOxygen/HO_InformedConsent/ADD_HO_InformedConsent',
                            method: 'post',
                            async: false,
                            dataType: 'String',
                            data: {
                                values: {
                                    parms: jsonStr
                                }
                            },
                        }, function(ret, err) {
                            if (ret) {
                              //实施治疗方案
                              document.getElementById("getF_ImplementationTreatmentPlan").value = "不可重复操作";
                                toast.success({
                                    title: "提交成功",
                                    duration: 2000
                                });
                            } else {
                                vm.cabinStatus = false
                                toast.fail({
                                    title: "提交失败",
                                    duration: 2000
                                });
                            }
                        });
                    }
                } else {
                    api.toast({
                        msg: '请登录在操作',
                        duration: 1000,
                        location: 'bottom'
                    });
                    return "";
                }
            });
        } else {
            toast.fail({
                title: "不可重复提交信息",
                duration: 2000
            });
        }
    }

    // 打开电子签名板
    function openSign() {

        // 画板
        var drawingBoard = api.require('drawingBoard');
        drawingBoard.open({
            rect: {
                x: 17,
                y: api.winHeight - 800,
                w: api.winWidth - 35,
                h: 400
            },
            styles: {
                brush: {
                    color: '#000000',
                    width: 3
                },
                bgColor: 'rgba(0, 0, 0, .6)'
            },
            fixedOn: api.frameName
        });
    }



    // 撤销最新的一笔
    function cancelStep() {
        var drawingBoard = api.require('drawingBoard');
        drawingBoard.revoke();
    }

    // 关闭签名
    function closeSign() {
        var drawingBoard = api.require('drawingBoard');
        api.confirm({
            title: '是否确定关闭签名？',
            buttons: ['确定', '取消']
        }, function(ret, err) {
            if (ret) {
                if (ret.buttonIndex === 1) {
                    drawingBoard.close();
                }
            }
        })
    }

    // 恢复撤销
    function revocationSign() {
        var drawingBoard = api.require('drawingBoard');
        drawingBoard.restore();
    }

    // 清除全部
    function clearSign() {
        var drawingBoard = api.require('drawingBoard');
        api.confirm({
            title: '是否确定清除全部？',
            buttons: ['确定', '取消']
        }, function(ret, err) {
            if (ret) {
                if (ret.buttonIndex === 1) {
                    drawingBoard.clear();
                }
            }
        })
    }


    // 保存签名
    function saveSign() {
        var toast = new auiToast();
        api.confirm({
            title: '是否确定保存？',
            msg: '请检查签名是否书写正确',
            buttons: ['确定', '取消']
        }, function(ret, err) {
            if (ret) {
                if (ret.buttonIndex === 1) {
                    var drawingBoard = api.require('drawingBoard');
                    drawingBoard.save({
                        savePath: 'fs://hyperbaric/result.png',
                        copyToAlbum: false
                    }, function(ret) {
                        if (ret.absolutePath) {
                            var trans = api.require('trans');

                            trans.decodeImgToBase64({
                                imgPath: ret.absolutePath
                            }, function(ret, err) {
                                if (ret.status) {
                                    //获取base64图片文件流
                                    vm.PictureInformation = "data:image/png;base64," + ret.base64Str;
                                    //提示成功弹窗
                                    toast.success({
                                        title: "操作成功",
                                        duration: 2000
                                    });
                                    //调用关闭签名
                                    drawingBoard.close();
                                } else {
                                    toast.fail({
                                        title: "提交失败",
                                        duration: 2000
                                    });
                                }
                            });
                        } else {
                            api.toast({
                                msg: '保存失败',
                                duration: 1000,
                                location: 'bottom'
                            });
                        }
                    });
                }
            } else {
                api.toast({
                    msg: '操作异常',
                    duration: 1000,
                    location: 'bottom'
                });
            }
        });
    }




    //获取参数
    function parameter(User_Id) {
        var toast = new auiToast();
        var JsParms = new Object();

        //患者ID
        JsParms.F_reserveId = vm.F_ID;
        //签署时间
        JsParms.F_SigningTime = document.getElementById("F_SigningTime").innerText;
        //谈话时间
        JsParms.F_TalkTime = document.getElementById("F_TalkTime").innerText;
        //谈话地点
        JsParms.F_PlaceConversation = document.getElementById("F_PlaceConversation").value;
        //病情诊断
        JsParms.F_DiseaseDiagnosis = document.getElementById("F_DiseaseDiagnosis").value;
        //实施治疗方案
        JsParms.F_ImplementationTreatmentPlan = document.getElementById("Programme").value;
        if (JsParms.F_ImplementationTreatmentPlan == "" || JsParms.F_ImplementationTreatmentPlan == undefined) {
            api.toast({
                msg: '请选择治疗方案',
                duration: 1000,
                location: 'bottom'
            });
            return "";
        }
        //其他
        JsParms.F_Other = document.getElementById("F_Other").value;
        //患者签字
        JsParms.F_SignaturePatient = vm.PictureInformation;
        if (JsParms.F_SignaturePatient == "" || JsParms.F_SignaturePatient == undefined) {
            api.toast({
                msg: '请进行签名',
                duration: 1000,
                location: 'bottom'
            });
            return "";
        }
        //于患者关系
        JsParms.F_RelationshipPatients = document.getElementById("F_RelationshipPatients").value;
        //联系电话
        JsParms.F_ContactNumber = document.getElementById("F_ContactNumber").value;

        //操作人
        JsParms.F_IgnaturePhysician = User_Id;
        if (JsParms.F_IgnaturePhysician == "0" || JsParms.F_IgnaturePhysician == undefined) {

            api.toast({
                msg: '请登录在操作',
                duration: 1000,
                location: 'bottom'
            });
            return "";
        }
        return JSON.stringify(JsParms)
    }
</script>

</html>
